package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperVipCodeMapper;
import com.ruoyi.system.domain.SuperVipCode;
import com.ruoyi.system.service.ISuperVipCodeService;

/**
 * 会员码Service业务层处理
 * 
 * @author mzh
 * @date 2025-08-15
 */
@Service
public class SuperVipCodeServiceImpl implements ISuperVipCodeService 
{
    @Autowired
    private SuperVipCodeMapper superVipCodeMapper;

    /**
     * 查询会员码
     * 
     * @param id 会员码主键
     * @return 会员码
     */
    @Override
    public SuperVipCode selectSuperVipCodeById(Long id)
    {
        return superVipCodeMapper.selectSuperVipCodeById(id);
    }

    /**
     * 查询会员码列表
     * 
     * @param superVipCode 会员码
     * @return 会员码
     */
    @Override
    public List<SuperVipCode> selectSuperVipCodeList(SuperVipCode superVipCode)
    {
        return superVipCodeMapper.selectSuperVipCodeList(superVipCode);
    }

    /**
     * 新增会员码
     * 
     * @param superVipCode 会员码
     * @return 结果
     */
    @Override
    public int insertSuperVipCode(SuperVipCode superVipCode)
    {
        return superVipCodeMapper.insertSuperVipCode(superVipCode);
    }

    /**
     * 修改会员码
     * 
     * @param superVipCode 会员码
     * @return 结果
     */
    @Override
    public int updateSuperVipCode(SuperVipCode superVipCode)
    {
        return superVipCodeMapper.updateSuperVipCode(superVipCode);
    }

    /**
     * 批量删除会员码
     * 
     * @param ids 需要删除的会员码主键
     * @return 结果
     */
    @Override
    public int deleteSuperVipCodeByIds(Long[] ids)
    {
        return superVipCodeMapper.deleteSuperVipCodeByIds(ids);
    }

    /**
     * 删除会员码信息
     * 
     * @param id 会员码主键
     * @return 结果
     */
    @Override
    public int deleteSuperVipCodeById(Long id)
    {
        return superVipCodeMapper.deleteSuperVipCodeById(id);
    }
}
